package com.yuyou.fn.portal.service;

import com.yuyou.fn.educational.entity.Student;
import com.yuyou.fn.portal.entity.OuterCourseClass;
import com.yuyou.fn.portal.entity.OuterShoppingcart;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.portal.vo.CourseClassResultVo;
import com.yuyou.fn.portal.vo.ShoppingCartDetailVo;

import java.util.HashMap;
import java.util.List;

/**
 *
 * OuterShoppingcart 表数据服务层接口
 *
 */
public interface IOuterShoppingcartService extends ISuperService<OuterShoppingcart,Long> {

     List<OuterShoppingcart> findOuterShoppingcartByCondition(Long userId,Long studentId);

     OuterShoppingcart findOuterShoppingcartByCondition(Long userId,Long studentId,Long classId);

     void updateShoppingCartStudent(List<Long> studentIds,Long outerShoppingcartId,Long userId);

     void addNewStudentToCart(List<Long> outerShoppingCartIds, Student student ,Long userId);

     void addToShoppingCart(Long classId,Long userId);

     void deleteShoppingCart(List<Long> outerShoppingCartIds,Long userId);

     Long countNumByUserId(Long userId);

     List<ShoppingCartDetailVo> findShoppingCartList(Long uerId);

     String checkClassTime(List<OuterCourseClass> list1, List<OuterCourseClass> list2);
}